import request from "@/util/request";

const apiUrl = '/my/file/'
/*图片操作*/
/*上传图片*/
export function  upFile(data){
    return request({
        method: 'post',
        url: apiUrl + 'upFile',
        data
    })
}
export function  delFileByIds(data){
    return request({
        method: 'post',
        url: apiUrl + 'del/byIds',
        data
    })
}
/*桶操作*/

/*获取全部桶名称*/

export function getBucket() {
    return request({
        method: 'get',
        url: apiUrl + 'getAllFileBucket',
    })
}

/*获取一个桶的全部文件*/
export function getFilesFromBucket(searchDTO) {
    return request({
        method: 'get',
        url: apiUrl + `getFilesFromBucket`,
        params:searchDTO
    })
}

